<%-- 
    Document   : localComercial
    Created on : 12/07/2014, 01:51:33 AM
    Author     : MilerIvan
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@include file="_sub/_librerias.jsp" %>

<%@include file="_sub/_head.jsp" %> 
<%@include file="_sub/_menu.jsp" %>
<div id="page-wrapper">  
    <div class="row">
        <sj:tabbedpanel id="localtabs">
                <sj:tab id="tab1" target="tone" label="Ingresar LocalComercial"/>
                <sj:tab id="tab2" target="ttwo" label="Listar LocalComercial"/>
                
                <div id="tone">
                    <div style="background-color:#ffff33; color:red;font-weight: bolder; margin-left:10px" >
                            <s:actionerror></s:actionerror></div>
                            <div style="background-color:#ffff33; color:green;font-weight: bolder">
                            <s:actionmessage></s:actionmessage></div>
                     <h1>Ingreso Local Comercial</h1>
            <s:form action="IngresarLocalComercialXML">
                 
                                                       
                   <s:textfield name="nomlocal" label="Nombre Local"></s:textfield>
                    <s:textfield name="dirlocal" label="Direccion"></s:textfield>
                     <s:textfield name="cuilocal" label="Cuidad"></s:textfield>
      
     
    
                   <s:submit value="Guardar"></s:submit>
                   <s:reset value="Cancelar"></s:reset>
              </s:form>
                    
                    
                </div>
                <div id="ttwo">
                        <h1>Listado Locales Comerciales</h1>
                        <div style="background-color:#ffff33; color:red;font-weight: bolder; margin-left:10px" >
                            <s:actionerror></s:actionerror></div>
                            <div style="background-color:#ffff33; color:green;font-weight: bolder">
                            <s:actionmessage></s:actionmessage></div>
                            <table>
                                <thead>
                                    <tr>
                                        <th>ID</th>
                                        <th>NOMBRE LOCAL</th>                                                                                                                  
                                        <th>DIRECCION</th>
                                        <th>CUIDAD</th>
                                    </tr>
                                </thead>
                                <!--ITERATOR RECORRE EL ARRAYLIST_-->  
                               <!--PROPIEDAD VALUE=listadoAction-->                          
                            <s:iterator value="listadoLocal">
                                <tr>
                                    <td><s:property value="locCom_id"></s:property></td>
                                    <!--Se carga atributo.atributoClaseAsociada-->
                                    <td><s:property value="locCom_nomLocal"></s:property></td>
                                    <td><s:property value="locCom_direccion"></s:property></td>
                                    <td><s:property value="locCom_ciudad"></s:property></td>
                                    

                                    
                                               
                                    </tr>
                            </s:iterator>
                        </table>
                    
                    
                </div>
                </sj:tabbedpanel>
    </div>
    <!-- /.row -->

</div>
<%@include file="_sub/_footer.jsp" %>
